//package com.wx.mall.goods.config;
//
//import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceBuilder;
//import org.springframework.boot.SpringBootConfiguration;
//import org.springframework.boot.context.properties.ConfigurationProperties;
//import org.springframework.context.annotation.Bean;
//
//import javax.sql.DataSource;
//
///**
// * @author: LiRui
// * @Date: 2019/11/21
// * @Time: 16:21
// */
//@SpringBootConfiguration
//public class DataSourceConfig {
//
//    /**
//     * 创建一个数据源对象,并放入Spring容器中
//     */
//    @Bean(name = "db")
//    @ConfigurationProperties(prefix = "spring.datasource.druid.db")
//    public DataSource dataSource() {
//        return DruidDataSourceBuilder.create().build();
//    }
//}